package game.ui.hud
{
	import com.greensock.*;
	import engine.asset.*;
	import engine.sound.*;
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	import flash.text.*;
	import game.actor.*;
	import game.localization.*;
	import game.messages.inventory.*;
	//import game.messages.viewer.*;
	import game.network.*;
	import game.scene.*;
	import game.store.*;
	import game.ui.controls.*;
	import game.ui.core.*;
	import game.ui.data.*;
	import game.ui.events.*;
	import game.ui.layouts.*;
	
	public class RxEquipmentPanel extends RxGamePanel
	{
		private var m_inventory:RxInventory;
		private var m_equipmentSlots:Vector.<RxEquipmentSlot>;
		private var m_inventoryGrid:RxDataGrid;
		private var m_inventoryTabs:RxDataGrid;
		private var m_prevPageButton:RxButtonBase;
		private var m_nextPageButton:RxButtonBase;
		private var m_slotContainer:Sprite;
		private var m_tooltip:RxEquipmentTooltip;
		private var m_compareTooltip1:RxEquipmentTooltip;
		private var m_compareTooltip2:RxEquipmentTooltip;
		private var m_errorField:RxTextLabel;
		private var m_pageLabel:RxTextLabel;
		private var m_capacityLabel:RxTextLabel;
		private var m_addCapacityButton:RxRectangularButton;
		//private var m_actorViewer:RxActorViewer;
		private var m_platinumDisplay:RxNumberDisplay;
		private var m_heroStatsPanel:RxHeroStatsPanel;
		//private var m_pageIndicator:RxPageIndicator;
		private var m_highlightedSlot:RxEquipmentSlot;
		private static const ACTOR_VIEW_X:int = 287;
		private static const ACTOR_VIEW_Y:int = 55;
		private static const ACTOR_VIEW_WIDTH:int = 240;
		private static const ACTOR_VIEW_HEIGHT:int = 320;
		private static const PANEL_WIDTH:int = 806;
		private static const PANEL_HEIGHT:int = 700;
		private static const GRID_WIDTH:int = 8;
		private static const GRID_HEIGHT:int = 1;
		private static const INVENTORY_FILTERS:Array = [RxInventoryCollection.FILTER_NONE, RxInventoryCollection.FILTER_WEAPONS, RxInventoryCollection.FILTER_ARMOR, RxInventoryCollection.FILTER_RINGS, RxInventoryCollection.FILTER_CONSUMABLES];
		private static var s_telemetrySessionId:uint = 0;
		private static var s_inventoryTabs:Array;
		
		public function RxEquipmentPanel()
		{
			super(RxGamePanelIds.INVENTORY, new Rectangle(ACTOR_VIEW_X, ACTOR_VIEW_Y, ACTOR_VIEW_WIDTH, ACTOR_VIEW_HEIGHT));
			width = PANEL_WIDTH;
			height = PANEL_HEIGHT;
			var _loc_1:* = RxHeroLocal.FindPlayer();
			if (_loc_1)
			{
				this.m_inventory = _loc_1.GetInventory();
			}
			//this.UpdateInventoryTabLabels();
			//this.CreateChildren();
			//RxLocalizationManager.AddLocaleChangeCallback(this.OnLocaleChanged);
		}
	}
}